.class public Lcom/estrongs/android/taskmanager/KillOnlyList;
.super Landroid/app/Activity;


# instance fields
.field a:Landroid/widget/TextView;

.field private b:Ljava/util/HashMap;

.field private c:Ljava/util/HashMap;

.field private d:Lcom/estrongs/android/taskmanager/cw;

.field private e:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->e:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/taskmanager/KillOnlyList;)Ljava/util/HashMap;
    .locals 1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->c:Ljava/util/HashMap;

    return-object v0
.end method

.method static synthetic b(Lcom/estrongs/android/taskmanager/KillOnlyList;)Lcom/estrongs/android/taskmanager/cw;
    .locals 1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->d:Lcom/estrongs/android/taskmanager/cw;

    return-object v0
.end method

.method static synthetic c(Lcom/estrongs/android/taskmanager/KillOnlyList;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->e:Landroid/os/Handler;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 2

    const v0, 0x7f0900dd

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/KillOnlyList;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/google/ads/AdView;

    sget-boolean v1, Lcom/estrongs/android/taskmanager/TaskManager;->a:Z

    if-eqz v1, :cond_0

    new-instance v1, Lcom/google/ads/c;

    invoke-direct {v1}, Lcom/google/ads/c;-><init>()V

    invoke-virtual {v0, v1}, Lcom/google/ads/AdView;->a(Lcom/google/ads/c;)V

    :goto_0
    return-void

    :cond_0
    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/google/ads/AdView;->setVisibility(I)V

    goto :goto_0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 9

    const/4 v3, 0x0

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f03001b

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/KillOnlyList;->setContentView(I)V

    const v0, 0x7f0900de

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/KillOnlyList;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->a:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->a:Landroid/widget/TextView;

    const v1, 0x7f07003c

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    const v0, 0x7f070039

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/KillOnlyList;->setTitle(I)V

    const v0, 0x7f0900df

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/KillOnlyList;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    new-instance v1, Lcom/estrongs/android/taskmanager/cs;

    invoke-direct {v1, p0}, Lcom/estrongs/android/taskmanager/cs;-><init>(Lcom/estrongs/android/taskmanager/KillOnlyList;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0900e0

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/KillOnlyList;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/KillOnlyList;->a()V

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->b:Ljava/util/HashMap;

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->c:Ljava/util/HashMap;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->b:Ljava/util/HashMap;

    const/4 v2, 0x2

    invoke-static {p0, v1, v2}, Lcom/estrongs/android/taskmanager/ht;->a(Landroid/content/Context;Ljava/util/Map;I)V

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->b:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Set;->toArray()[Ljava/lang/Object;

    move-result-object v5

    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/KillOnlyList;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v7

    move v2, v3

    :goto_0
    array-length v1, v5

    if-lt v2, v1, :cond_0

    new-instance v1, Lcom/estrongs/android/taskmanager/cw;

    invoke-direct {v1, p0, p0, v6}, Lcom/estrongs/android/taskmanager/cw;-><init>(Lcom/estrongs/android/taskmanager/KillOnlyList;Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->d:Lcom/estrongs/android/taskmanager/cw;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->d:Lcom/estrongs/android/taskmanager/cw;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setCacheColorHint(I)V

    new-instance v1, Lcom/estrongs/android/taskmanager/cu;

    invoke-direct {v1, p0}, Lcom/estrongs/android/taskmanager/cu;-><init>(Lcom/estrongs/android/taskmanager/KillOnlyList;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void

    :cond_0
    aget-object v1, v5, v2

    check-cast v1, Ljava/lang/String;

    const/4 v4, 0x0

    :try_start_0
    invoke-virtual {v7, v1}, Landroid/content/pm/PackageManager;->getApplicationIcon(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v4

    :goto_1
    if-nez v4, :cond_1

    :goto_2
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_0

    :cond_1
    iget-object v8, p0, Lcom/estrongs/android/taskmanager/KillOnlyList;->c:Ljava/util/HashMap;

    invoke-virtual {v8, v1, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {v6, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_2

    :catch_0
    move-exception v8

    goto :goto_1
.end method

.method protected onResume()V
    .locals 0

    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    return-void
.end method
